@text-color: #606060;
* {
  cursor: pointer;
  user-select: none;
}
body {
  background-color: azure;
}
div.select {
  position: absolute;
  left: 50%;
  top: 5vh;
  width: 350px;
  transform: translateX(-50%);
  input {
    opacity: 0;
    position: relative;
    top: 50px;
    z-index: 99;
    width: 160px;
    height: 3rem;
    &:first-of-type:hover ~ .button::before {
      transform: scaleX(1);
    }
    &:last-of-type:hover ~ .button1::before {
      transform: scaleX(1);
    }
  }

  .button,
  .button1 {
    position: relative;
    overflow: hidden;
    height: 3rem;
    padding: 0 2rem;
    border-radius: 1.5rem;
    background: #3d3a4e;
    background-size: 400%;
    color: #fff;
    border: none;
  }

  .button-content {
    position: relative;
    z-index: 1;
    font-weight: 600;
  }

  .button::before,
  .button1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    width: 100%;
    height: inherit;
    border-radius: inherit;
    background: linear-gradient(-60deg, #8ec5fc 10.8%, #e0c3fc 94.3%);
    transition: all 0.475s;
  }
}
div {
  &.container {
    transition: width 1s;
    position: absolute;
    width: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 20px;
    background-color: #8ec5fc;
    background-image: linear-gradient(-60deg, #8ec5fc 0%, #e0c3fc 100%);
    box-shadow: 0 0 50px 2px #eedcfe;
  }

  &.main {
    background-color: #ffffff74;
    width: 350px;
    transition: left 1s;
    height: 250px;
    display: inline-block;
    position: absolute;
    left: 50%;
    border-radius: 20px;
    top: 20px;
    text-align: center;
    padding: 0 10px;
  }
  &.control {
    transition: left 1s;
    position: absolute;
    left: 51%;
    bottom: 15px;
    text-align: center;
    display: inline-block;
  }
  div {
    &.control {
      i {
        font-size: 40px;
        margin: 0 15px;
      }
      .icon-ziyuan {
        color: #22222280;
      }
      .icon-danquxunhuan {
        color: #22222280;
      }
    }
    &.mask {
      margin-left: 0px;
      transition: all 0.5s;
      .button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 60px;
        opacity: 0;
        color: #222;
      }
    }
  }
  &.title {
    h1 {
      margin: 10px 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    h2 {
      margin: 10px 0;
      font-weight: 400;
      color: @text-color;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  &.lyrics {
    width: 350px;
    height: 135px;
    overflow-y: auto;
    &::-webkit-scrollbar {
      display: none;
    }
  }
}
#plant {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 15px 2px #757575;
  animation: rotate 8s linear infinite forwards;
  animation-play-state: paused;
  margin-left: 20px;
}
div.cd {
  background: url(../img/favicon.ico) no-repeat center center;
  background-size: cover;
  #plant();
}
div.mask {
  #plant();
  &:hover {
    backdrop-filter: blur(2px);
    background-color: #ffffff50;
    .button {
      transition: all 0.5s;
      opacity: 1;
    }
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
ul {
  list-style: none;
  padding: 0;
}

li {
  &.render {
    font-size: 20px;
    font-weight: 600;
    color: #6eb6ff;
  }
}
.slider {
  width: 350px;
  height: 10px;
  position: absolute;
  left: -27px;
  top: -40px;
  outline: none;
  appearance: none;
  border-radius: 5px;
  background: linear-gradient(
    to right,
    #6eb6ff 0%,
    #6eb6ff 0%,
    aliceblue 0%,
    aliceblue 100%
  );
  &::-webkit-slider-thumb {
    background: #6eb6ff;
    appearance: none;
    position: relative;
    width: 16px;
    border-radius: 50%;
    height: 16px;
    border: 3px solid @text-color;
    transition: width 0.25s, height 0.25s;
  }
}
p {
  &.time {
    position: absolute;
    text-align: end;
    font-size: 12px;
    right: -30px;
    top: -53px;
    font-weight: 600;
    color: @text-color;
    letter-spacing: -1px;
  }
}
.musicList {
  .button {
    display: inline-block;
    font-size: 40px;
    transform: rotateY(0deg);
    transition: transform 0.5s;
  }
  .list {
    transition: opacity 1s;
    overflow-y: auto;
    opacity: 0;
    display: none;
    border-radius: 20px;
    position: absolute;
    width: 380px;
    height: 345px;
    top: 20px;
    right: 20px;
    background-color: #ffffff74;
    &::-webkit-scrollbar {
      /* 对应纵向滚动条的宽度 */
      width: 10px;
    }

    /* 滚动条上的滚动滑块 */
    &::-webkit-scrollbar-thumb {
      background-color: #ffffffd0;
      border-radius: 32px;
    }

    /* 滚动条轨道 */
    &::-webkit-scrollbar-track {
      background-color: #dbeffd00;
      border-radius: 32px;
    }
    ul {
      padding: 0;
      margin: 0;
      li {
        margin: 0 auto;
        width: 90%;
        border-radius: 10px;
        height: 20%;
        margin-top: 4%;
        background-image: linear-gradient(to right, #8ec5fc 0%, #8ec5fca0 100%);
        &:hover {
          background-image: linear-gradient(
            to right,
            #8ec5fca0 0%,
            #8ec5fc50 100%
          ) !important;
        }
        h2 {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 18px;
          width: 60%;
          margin-left: 10px;
          display: inline-block;
          color: #000;
        }
        p {
          color: #ffffffe0;
          font-weight: 600;
          max-width: 30%;
          font-size: 13px;
          display: inline-block;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }
}
